<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分页</title>

    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        body {
            background-color: aliceblue;
        }
        
        ul {
            height: 200px;
            text-align: center;
            margin: 200px auto;
        }
        
        ul>li {
            display: inline-block;
            width: 30px;
            height: 30px;
            text-align: center;
            margin: 40px;
            transform: rotate(45deg);
            transform-origin: center 50%;
            transition: all 1s ease;
            background-color: antiquewhite;
        }
        
        ul>li:hover {
            border: 1px solid magenta;
            transform: rotate(-45deg);
        }
        
        ul>li:hover span {
            transform: rotate(45deg);
        }
        
        span {
            transition: all 1s ease;
            display: inline-block;
            line-height: 30px;
            transform: rotate(-45deg);
            transform-origin: center 50%;
        }
    </style>


</head>

<body>


    <ul>
        <li><span>1</span></li>
        <li><span>2</span></li>
        <li><span>3</span></li>
        <li><span>4</span></li>
        <li><span>5</span></li>
    </ul>




</body>

</html>